package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.SangerCwfxyq;
import com.zhijian.medical.entity.vo.request.SangerCwfxyqSearchVo;
import com.zhijian.medical.entity.vo.response.SangerCwfxyqVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 一代测序-产物分析一区  业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-08-12 14:29:43
 */
public interface SangerCwfxyqService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    SangerCwfxyq selectById(Long id);

    /**
     * 根据实验id查询
     *
     * @param sangerId
     * @return
     */
    SangerCwfxyq selectBySangerId(Long sangerId);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    SangerCwfxyqVo selectVoById(Long id);

    /**
     * 根据实验id查询vo
     *
     * @param sangerId
     * @return
     */
    SangerCwfxyqVo selectVoBySangerId(Long sangerId);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param sangerCwfxyq
     * @return
     */
    Long insert(SangerCwfxyq sangerCwfxyq);

    /**
     * 更改
     *
     * @param sangerCwfxyq
     * @return
     */
    boolean update(SangerCwfxyq sangerCwfxyq);

    /**
     * 新增or修改
     *
     * @param sangerCwfxyq
     * @return
     */
    boolean saveOrUpdate(SangerCwfxyq sangerCwfxyq);

    /**
     * 总数
     *
     * @param sangerCwfxyqSearchVo
     * @return
     */
    Integer count(SangerCwfxyqSearchVo sangerCwfxyqSearchVo);

    /**
     * 列表
     *
     * @param sangerCwfxyqSearchVo
     * @return
     */
    List<SangerCwfxyqVo> selectList(SangerCwfxyqSearchVo sangerCwfxyqSearchVo);

    /**
     * 分页查询
     *
     * @param sangerCwfxyqSearchVo
     * @return
     */
    Page<SangerCwfxyqVo> selectPage(SangerCwfxyqSearchVo sangerCwfxyqSearchVo);
}